package com.xiaoshuidi.cloud.module.iot.infrastructure.remote.dto;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @author ：baohanzhong
 * @date ：Created 2024/8/21 19:35
 * @description：
 */
@NoArgsConstructor
@Data
public class SmartLockDevices {


    /**
     * has_more
     */
    private Boolean has_more;
    /**
     * records
     */
    private List<RecordsDTO> devices;
    /**
     * total
     */
    private Integer total;

    /**
     * 分页标识
     */
    private String last_row_key;

    /**
     * RecordsDTO
     */
    @NoArgsConstructor
    @Data
    public static class RecordsDTO {

        /**
         * active_time
         */
        private Integer active_time;
        /**
         * biz_type
         */
        private Integer biz_type;
        /**
         * category
         */
        private String category;
        /**
         * create_time
         */
        private Long create_time;
        /**
         * icon
         */
        private String icon;
        /**
         * id
         */
        private String id;
        /**
         * ip
         */
        private String ip;
        /**
         * local_key
         */
        private String local_key;
        /**
         * model
         */
        private String model;
        /**
         * name
         */
        private String name;
        /**
         * online
         */
        private Boolean online;
        /**
         * owner_id
         */
        private String owner_id;
        /**
         * product_id
         */
        private String product_id;
        /**
         * product_name
         */
        private String product_name;
        /**
         * status
         */
        private List<StatusDTO> status;
        /**
         * sub
         */
        private Boolean sub;
        /**
         * time_zone
         */
        private String time_zone;
        /**
         * uid
         */
        private String uid;
        /**
         * update_time
         */
        private Integer update_time;
        /**
         * uuid
         */
        private String uuid;

        /**
         * StatusDTO
         */
        @NoArgsConstructor
        @Data
        public static class StatusDTO {
            /**
             * code
             */
            private String code;
            /**
             * value
             */
            private String value;
        }
    }
}
